<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        * {
            margin: 0;
        }
        html,
        body {
            width: 100%;
            height: 100%;
        }
        #container {
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100vw !important;
            height: 100vh !important;
            background: #000;
        }
    </style>
</head>
<body>
<div id="container"></div>
<script src="./jessibuca.js"></script>

<script>
    const player = new window.Jessibuca({
        container: document.getElementById("container"),
        decoder: "./decoder.js",
        rotate: 270,
        isResize: false,
    });

    // 测试的 demo 地址。
    // 感谢nodemedia提供的测试地址。
    if(player.hasLoaded()){
        player.play("http://flv.bdplay.nodemedia.cn/live/bbb.flv");
    }
    else {
        player.on('load',function (){
            player.play("http://flv.bdplay.nodemedia.cn/live/bbb.flv");
        })
    }




</script>
</body>
</html>
